package ${package}.service.impl;

import ${package}.repository.${name?cap_first}Repository;
import ${package}.service.${name?cap_first}Service;
import org.moon.base.service.AbstractService;
import org.moon.pagination.Pager;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ${name?cap_first}ServiceImpl extends AbstractService implements ${name?cap_first}Service {

    @Resource
    private ${name?cap_first}Repository ${name?uncap_first}Repository;

    @Override
    public Map<String, Object> get(Map<String,Object> params) {
        return ${name?uncap_first}Repository.get(params);
    }

    @Override
    public List<Map<String, Object>> list(Map<String, Object> params) {
        return ${name?uncap_first}Repository.list(params);
    }

    @Override
    public void update(Map<String, Object> params) {
        ${name?uncap_first}Repository.update(params);
    }

    @Override
    public void delete(Map<String,Object> params) {
        ${name?uncap_first}Repository.delete(params);
    }

    @Override
    public void add(Map<String, Object> params) {
        ${name?uncap_first}Repository.add(params);
    }
}
